﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FunasrSTT.Translate.Models.Messages;


public partial class LogMessage : ObservableObject
{
    public LogMessage(string message, LogLevel logLevel)
    {
        Message = message;
        LogLevel = logLevel;
        IsNewLine = true;
    }

    [ObservableProperty]
    private string message;

    [ObservableProperty]
    private LogLevel logLevel = Messages.LogLevel.Default;

    [ObservableProperty]
    private bool isNewLine;

    //public event PropertyChangedEventHandler PropertyChanged;
}


public enum LogLevel
{
    Default = 0,
    Debug,
    Info,
    Error
}
